package lab02.test9;

/**
 * Created by dell on 2017/10/19.
 */
public class student {
    //属性：学号、班号、姓名、性别、年龄
    String sno;
    String classNum;
    String name;
    String gender;
    int age;
    String toString;

    //行为：获得学号、获得班号、获得性别、获得姓名、获得年龄
    String getSno(){
        return sno;
    }

    String getClassNum(){
        return classNum;
    }

    String getName(){
        return name;
    }

    String getGender(){
        return gender;
    }

    int getAge(){ return age; }

    @Override
    public String toString(){ return name;}

    //构造函数

}
